package demo12;

/**
 * Created by Administrator on 2017/4/7.
 */
//: PassHandles.java
// Passing handles around

public class PassHandles {
    static void f(PassHandles h) {
        System.out.println("h inside f(): " + h);
    }

    public static void main(String[] args) {
        PassHandles p = new PassHandles();
        System.out.println("p inside main(): " + p);
        f(p);
    }
} ///:~